/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ipccenter.toster.jpa;

import java.io.Serializable;
import java.math.BigInteger;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 *
 * @author 7
 */
public class TestId {
    
   private BigInteger session_id;
   private BigInteger tc_id;

    public BigInteger getAnsNum() {
        return tc_id;
    }

    public BigInteger getTcId() {
        return session_id;
    }

    public void setAnsNum(BigInteger ansNum) {
        this.tc_id = ansNum;
    }

    public void setTcId(BigInteger tcId) {
        this.session_id = tcId;
    }
   
   
   
   
   @Override
    public boolean equals(Object obj) {
        if (obj == null)
            return false;
        if (obj == this)
            return true;
        if (obj.getClass() != getClass())
            return false;

        edu.ipccenter.toster.jpa.TestId    rhs = (edu.ipccenter.toster.jpa.TestId) obj;
        return new EqualsBuilder().
            // if deriving: appendSuper(super.equals(obj)).
            append(session_id, rhs.session_id).
            append(tc_id, rhs.tc_id).
            isEquals();
    }
    
    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 31). // two randomly chosen prime numbers
            // if deriving: appendSuper(super.hashCode()).
            append(session_id).
            append(tc_id).
            toHashCode();
    }
    
    
}


